package com.grass.p019lv.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.viewpager.widget.ViewPager;
import com.androidsa.bttsddka.R;
import com.google.android.material.tabs.TabLayout;
import com.grass.p019lv.fragment.HomeFragment;
import com.grass.p019lv.generated.callback.OnClickListener;

/* renamed from: com.grass.lv.databinding.FragmentHomeBindingImpl */
public class FragmentHomeBindingImpl extends FragmentHomeBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback74;
    private final View.OnClickListener mCallback75;
    private final View.OnClickListener mCallback76;
    private final View.OnClickListener mCallback77;
    private final View.OnClickListener mCallback78;
    private long mDirtyFlags;
    private final RelativeLayout mboundView0;
    private final ImageView mboundView1;
    private final LinearLayout mboundView2;
    private final ImageView mboundView5;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.toolbar, 7);
        sViewsWithIds.put(R.id.tab_layout, 8);
        sViewsWithIds.put(R.id.view_pager, 9);
        sViewsWithIds.put(R.id.rl_new_view, 10);
        sViewsWithIds.put(R.id.iv_new_img, 11);
        sViewsWithIds.put(R.id.tv_times, 12);
    }

    public FragmentHomeBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 13, sIncludes, sViewsWithIds));
    }

    private FragmentHomeBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (EditText) objArr[3], (ImageView) objArr[6], (ImageView) objArr[4], (ImageView) objArr[11], (RelativeLayout) objArr[10], (TabLayout) objArr[8], (Toolbar) objArr[7], (TextView) objArr[12], (ViewPager) objArr[9]);
        this.mDirtyFlags = -1;
        this.edSearch.setTag(null);
        this.ivActivity.setTag(null);
        this.ivDownload.setTag(null);
        RelativeLayout relativeLayout = (RelativeLayout) objArr[0];
        this.mboundView0 = relativeLayout;
        relativeLayout.setTag(null);
        ImageView imageView = (ImageView) objArr[1];
        this.mboundView1 = imageView;
        imageView.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[2];
        this.mboundView2 = linearLayout;
        linearLayout.setTag(null);
        ImageView imageView2 = (ImageView) objArr[5];
        this.mboundView5 = imageView2;
        imageView2.setTag(null);
        setRootTag(view);
        this.mCallback77 = new OnClickListener(this, 4);
        this.mCallback74 = new OnClickListener(this, 1);
        this.mCallback78 = new OnClickListener(this, 5);
        this.mCallback76 = new OnClickListener(this, 3);
        this.mCallback75 = new OnClickListener(this, 2);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 16;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (170 == i) {
            setStatus((Integer) obj);
        } else if (34 == i) {
            setClick((HomeFragment.OnClick) obj);
        } else if (3 == i) {
            setActiveUrl((String) obj);
        } else if (165 != i) {
            return false;
        } else {
            setShow((Integer) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.FragmentHomeBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(170);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.FragmentHomeBinding
    public void setClick(HomeFragment.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.FragmentHomeBinding
    public void setActiveUrl(String str) {
        this.mActiveUrl = str;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(3);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.FragmentHomeBinding
    public void setShow(Integer num) {
        this.mShow = num;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(165);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Removed duplicated region for block: B:22:0x003f  */
    /* JADX WARNING: Removed duplicated region for block: B:37:0x0062  */
    /* JADX WARNING: Removed duplicated region for block: B:40:0x008a  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x0096  */
    /* JADX WARNING: Removed duplicated region for block: B:46:0x00a0  */
    /* JADX WARNING: Removed duplicated region for block: B:51:? A[RETURN, SYNTHETIC] */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        int i;
        long j2;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        HomeFragment.OnClick onClick = this.mClick;
        String str = this.mActiveUrl;
        Integer num2 = this.mShow;
        long j3 = j & 17;
        boolean z = true;
        int i2 = 0;
        if (j3 != 0) {
            boolean z2 = ViewDataBinding.safeUnbox(num) == 1;
            if (j3 != 0) {
                j |= z2 ? 64 : 32;
            }
            if (!z2) {
                i = 8;
                j2 = j & 24;
                if (j2 != 0) {
                    if (ViewDataBinding.safeUnbox(num2) != 2) {
                        z = false;
                    }
                    if (j2 != 0) {
                        j |= z ? 256 : 128;
                    }
                    i2 = z ? 8 : 0;
                }
                if ((16 & j) != 0) {
                    this.edSearch.setOnClickListener(this.mCallback75);
                    this.ivActivity.setOnClickListener(this.mCallback78);
                    this.ivDownload.setOnClickListener(this.mCallback76);
                    this.mboundView1.setOnClickListener(this.mCallback74);
                    this.mboundView5.setOnClickListener(this.mCallback77);
                }
                if ((17 & j) != 0) {
                    this.ivActivity.setVisibility(i);
                }
                if ((20 & j) != 0) {
                    HomeFragment.setActiveImage(this.ivActivity, str);
                }
                if ((j & 24) == 0) {
                    this.mboundView2.setVisibility(i2);
                    return;
                }
                return;
            }
        }
        i = 0;
        j2 = j & 24;
        if (j2 != 0) {
        }
        if ((16 & j) != 0) {
        }
        if ((17 & j) != 0) {
        }
        if ((20 & j) != 0) {
        }
        if ((j & 24) == 0) {
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            HomeFragment.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.goToSign();
            }
        } else if (i == 2) {
            HomeFragment.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.searchClick();
            }
        } else if (i == 3) {
            HomeFragment.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.downLoadClick();
            }
        } else if (i == 4) {
            HomeFragment.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.historyClick();
            }
        } else if (i == 5) {
            HomeFragment.OnClick onClick5 = this.mClick;
            if (onClick5 != null) {
                z = true;
            }
            if (z) {
                onClick5.activeClick();
            }
        }
    }
}
